package cn.kgc.ffzw.day15.src.main.java.com.ffzw.ffzw;

public class Student {
    String stuName;
    int stuId;
    int score;


    public Student(){
        System.out.println("无参数");
    }

    public Student(String stuName,int stuId,int score){
        this.stuName =stuName;
        this.stuId =stuId;
        score=score;
        System.out.println("有参数");
    }

    public void show(){
        System.out.println("学员姓名为："+stuName+",学号为："+stuId+",成绩为："+score);
    }



    public void addStudent(String name,int id,int chengji){
        stuName=name;
        stuId=id;
        score=chengji;
    }
}
